﻿<Page
    x:Class="SearchFormToolkit.Wizards.Pages.TextCriterionPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="http://schemas.microsoft.com/nupattern/2012/xaml/"
    xmlns:l="clr-namespace:SearchFormToolkit.Wizards"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignHeight="400" d:DesignWidth="600"
    FocusManager.FocusedElement="{x:Reference RequiredEditor}"
    Title="Text Criteria" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="400"/>
        </Grid.ColumnDefinitions>

        <Label Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" FontWeight="Bold">Appearance</Label>
        <Label FontStyle="Italic" Grid.Row="1" Grid.ColumnSpan="2" Margin="20,0,-308,0">This information describes how the text criterion will be displayed to a user.</Label>
        <Label Grid.Column="0" Grid.Row="2">Label:</Label>
        <p:ValueEditor Name="LabelEditor" Value="{Binding Label}" Grid.Column="1" Grid.Row="2"/>
        <Label Grid.Column="0" Grid.Row="3">Is Required:</Label>
        <p:ValueEditor Name="RequiredEditor" Value="{Binding Required}" Grid.Column="1" Grid.Row="3"/>
        <Label Grid.Column="0" Grid.Row="4">Min. Length:</Label>
        <p:ValueEditor Name="MinLengthEditor" Value="{Binding MinLength}" Grid.Column="1" Grid.Row="4"/>
        <Label Grid.Column="0" Grid.Row="5">Format Type:</Label>
        <p:ValueEditor Name="FormatTypeEditor" Value="{Binding FormattingType}" Grid.Column="1" Grid.Row="5"/>
        <Label Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" FontWeight="Bold">Data Binding</Label>
        <Label FontStyle="Italic" Grid.Row="7" Grid.ColumnSpan="2" Margin="20,0,-308,0">This is the data in the ViewModel to bind to.</Label>
        <Label Grid.Column="0" Grid.Row="8">Search Field:</Label>
        <p:ValueEditor Name="DisplayFieldTypeEditor" Value="{Binding SearchField}" Grid.Column="1" Grid.Row="8"/>
    </Grid>
</Page>